<?php

declare(strict_types=1);

namespace App\Controller\Api;

use Hyperf\HttpServer\Contract\RequestInterface;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\RequestMapping;
use App\Controller\AbstractController;
use App\Service\LogService\YunCangCustomCenterLogService;

/**
 * @Controller(prefix="/YunCangCustomLog")
 * @author chenshubo
 */
class YunCangCustomCenterLogController extends AbstractController
{
    /**
     * 接收关务中心接口访问请求日志
     * @RequestMapping(path="addLog", methods="post")
     * @return mixed
     */
    public function addLog(RequestInterface $request,YunCangCustomCenterLogService $service)
    {
        return $service->addLog($request->getParsedBody());
    }
}
